#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QStandardItemModel>
#include <QTreeView>
#include <QTcpSocket>
#include <QTimer>
#include <QTcpServer>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void process(QStandardItem *item);
    void TreeModel();
    void TreeData();

    void Mkdir();

public slots:
    void print();
    void ShowNewPage();
    void Reverse();
    void TCPSend();
    void ToZero();
    void Del();


private:
    Ui::MainWindow *ui;
    QLabel *leftStatus;
    QLabel *rightStatus1;
    QLabel *rightStatus2;
    bool flag;

    QStandardItemModel *model;
    QTcpSocket *socket;
    QTcpServer server;
    QTimer *timer;
};

#endif // MAINWINDOW_H
